﻿package fj.utils
{
	import flash.system.Capabilities;
	import flash.net.navigateToURL;
	import flash.net.URLRequest;
	
	public class FJAnalytics
	{
		public static function send( area:String ):void
		{
			if( Capabilities.playerType != "External" ){
				if ( area.substr(0,1) != "/" ) {
					area = "/" + area;
				}
				navigateToURL( new URLRequest( "javascript:pageTracker._trackPageview('" + area + "');" ), "_self" );
			}
		}
	}
}